

//Z轴简单过渡
define(['progress.min'], function() {
  var mySwiper = new Swiper('.swiper-container', {
    progress: true,
    loop: false,
    onProgressChange: function(swiper) {
      for (var i = 0; i < swiper.slides.length; i++) {
        var slide = swiper.slides[i];
        var progress = slide.progress;
        swiper.setTransform(slide, 'translate3d(0px,0,' + (-Math.abs(progress * 1500)) + 'px)');
      }
    },
    onTouchStart: function(swiper) {
      for (var i = 0; i < swiper.slides.length; i++) {
        swiper.setTransition(swiper.slides[i], 0);
      }
    },
    onSetWrapperTransition: function(swiper, speed) {
      for (var i = 0; i < swiper.slides.length; i++) {
        swiper.setTransition(swiper.slides[i], speed);
      }
    },
    onSlideChangeEnd: function(swiper) {
      window.initAni($(swiper.visibleSlides), swiper.activeLoopIndex);
      window.clearAni($(swiper.wrapper).children().eq(swiper.previousIndex));
    }
  })

});
